package com.zcoj.pojo.Dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author chenbin
 * @version 1.0
 * @description: TODO
 * @date 2023/4/22 22:45
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class GroupRegister {
 private static final long serialVersionUID = 2892248514883451461L;

 @ApiModelProperty(value = "主键", example = "1")
 @TableId(type = IdType.AUTO)
 private Integer id;
 private Integer gid;
 private Integer uid;
 private Integer status;

 @ApiModelProperty(value = "创建时间")
 @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
 @TableField(fill = FieldFill.INSERT)
 private Date createTime;

 @ApiModelProperty(value = "更新时间")
 @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
 @TableField(fill = FieldFill.INSERT_UPDATE)
 private Date updateTime;
}
